<?php

namespace Gnway\Util\Concurrent;

/**
 * Class Executors
 *
 * @author zushaolong
 * @mail zushaolong@gmail.com
 */
final class Executors
{

  private function __construct()
  {
  }

  public static function newPool(): AbstractPool
  {
    return new Pool();
  }

  public static function newFixedPool(int $corePoolSize = 1): AbstractPool
  {
    return new FixedPool($corePoolSize);
  }
}